//调用接口配置文件
import { request ,verifyToken} from 'config/request'
// 定义接口

//城市与区域级联
export async function regionArea(params) {
    return request({
        url: `zituo-admin/a/sys/baseOrg/projectList`,
        method: 'GET',
        data: params,
    });
};

//坐标数据
export async function locationServ(params) {
    return request({
        url: `zituo-admin/a/map/findAll `,
        method: 'POST',
        data: {...params},
    });
};

//获取客户转移下团队
export async function getTeamsByProjectId(params) {
    return request({
        url: `zituo-admin/a/sys/zituoTeamInfo/getTeamsByProjectId`,
        method: 'POST',
        data: params,
    });
  };
  
  //获取客户转移下成员
  export async function getTeamUser(params) {
    return request({
        url: `zituo-admin/a/sys/zituoTeamInfo/findZituoTeamsMembersByTeamId`,
        method: 'POST',
        data: params,
    });
  };
  //导入
  export async function importExcel(params) {
    return request({
        url: `zituo-admin/a/map/importExcel/${params.projectId}/${params.userId}`,
        method: 'POST',
        data: params.fileInfo,
    });
  };
//删除表格数据
export async function deleteImportCustomer(params) {
    return request({
        // url: `zituo-admin/a/map/deleteImportCustomer/${params.ids}`,
        url: `zituo-admin/a/map/deleteImportCustomerByFileName/${params.fileName}`,
        method: 'GET',
        headers:{
            "Content-type":"application/json",
        }
    });
};
  
//验证token
export async function verifyCodeFun(){
    return verifyToken();
  }
